#include <iostream>
#include <cassert>

template<typename T>
class MyVector
{
public:
    MyVector(int size = 10);
    ~MyVector();

    // 访问
    T& at(int index) const;
private:
    T* data;
    int length;
    int current_pos;
};